package day06;

public class Method1 {
    public static void main(String[] args) {
        //say();
        //sayHi("Lee",23);
        /*
        double a = getNum();
        System.out.println(a);
         */
        /*
        int a =plus(6,16);
        System.out.println(a);
        a++;
        System.out.println(a);
         */

        int[] a =testArray();
        for (int i = 0;i<a.length;i++){
            System.out.println(a[i]);
        }
    }
    public static void say(){
        System.out.println("大家好,我叫李延,今年24岁了");
    }


    public static void sayHi(String name,int age){
        System.out.println("大家好,我叫"+name+",今年"+age+"岁了");


    }
    public static double getNum(){
        return 0.6;
    }
    public static int plus(int num1,int num2){
        int num =num1+num2;
        return num;
    }
    public static int[] testArray(){
        int[] arr = new int[10];
        for (int i = 0;i<arr.length;i++){
            arr[i]=(int)(Math.random()*100);
        }
        return arr;
    }
}
